package com.kuangshen08.proxy;

public class RentProxy implements Rent{
    private Host host;

    public RentProxy(){};

    public RentProxy(Host host) {
        this.host = host;
    }



    @Override
    public void rent() {
        seeHouse();
        host.rent();
        fare();
        contract();
    }

    // 看房
    public void seeHouse() {
        System.out.println("带房客看房");
    }

    // 收中介费
    public void fare() {
        System.out.println("收中介费");
    }

    // 签合同
    public void contract() {
        System.out.println("签合同");
    }
}
